package wrapper;

public class IntegerDemo {
    public static void main(String[] args) {
        /*
        Integer i = new Integer(100);
        Integer j = new Integer(100);
        System.out.println(i == j);//false
        System.out.println(i.equals(j));//true

        Integer k=Integer.valueOf(5);
        Integer l=Integer.valueOf(5);
        System.out.println(k==l);
        System.out.println(k.equals(l));

        Integer m=5;//Integer m=Integer.valueOf(5);
        int n=m;//int n=m.intValue();
         */
        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println("最大"+max+",最小"+min);

        long maxlong=Long.MAX_VALUE;
        long minlong=Long.MIN_VALUE;
        System.out.println("最大"+maxlong+",最小"+minlong);

        String a="38";
        int age = Integer.parseInt(a);
        System.out.println(age);

        String b="1.72";
        double price=Double.parseDouble(b);
        System.out.println(price);
    }
}